//
//  RealmTool.h
//  Daybook
//
//  Created by dllo on 16/6/1.
//  Copyright © 2016年 zhangbin. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <Realm/Realm.h>


@interface RealmTool : NSObject

+ (void)createNewRealmDateBaseWithAccountName:(NSString *)name;

+ (void)setDefaultRealmForUser:(NSString *)username;

+ (RLMRealm *)getRealmFromAccountName:(NSString *)name;


/********************************************************************/

+ (RLMResults *)getCurrentAccountFromUserDefaults;

+ (void)deleteDayBookInRealmFromIndex:(NSString *)index;

+ (void)createDayBookInRealmFromIndex:(NSString *)index name:(NSString *)name;

+ (NSString *)incomeStringFromCurrentAccountFromUserDefaults;

+ (NSString *)payStringFromCurrentAccountFromUserDefaults;


@end
